package com.oracle.stringbuilderreview;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/13-22:41
 */
public class StringBuilderReview {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("abc");

        sb.append(1);
        System.out.println(sb);
        System.out.println(sb.toString());

        sb.insert(1,3);
        System.out.println(sb);

        sb.deleteCharAt(1);
        System.out.println(sb);

        sb.delete(1,sb.length()-1);
        System.out.println(sb);
    }
}
